package com.cwz.gateway.service;

import com.cwz.core.exception.captcha.CaptchaException;
import com.cwz.core.result.R;

import java.util.Map;

/**
 * @program: w-demo
 * @description: 验证码处理
 * @author: Wen
 **/
public interface ValidateCodeService {
	/**
	 * 生成验证码
	 */
	R<Map<String, Object>> createCaptcha() throws CaptchaException;

	/**
	 * 校验验证码
	 */
	void checkCaptcha(String code, String uuid) throws CaptchaException;
}
